package com.mysoft.gfyx.workbench.remoteservice;

import com.mysoft.framework.rpc.annotation.RemoteAction;
import com.mysoft.framework.rpc.annotation.RemoteService;
import com.mysoft.gfyx.workbench.remoteservice.dto.MessageQueryFilter;
import com.mysoft.gfyx.workbench.remoteservice.dto.MessageSetReadResponseDto;
import com.mysoft.gfyx.workbench.remoteservice.dto.TaskWakeDto;
import com.mysoft.gfyx.workbench.remoteservice.dto.TaskWakeHistoryDto;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.ArrayList;
import java.util.UUID;

@RemoteService(appCode = "0000", path = "/Mysoft.PubPlatform.Message.Interfaces.ISendMessagePublicService")
public interface RemoteSystemMessageService {
    @RemoteAction(path = "/QueryTaskWakeHistoryList", method = RequestMethod.POST)
    ArrayList<TaskWakeHistoryDto> QueryTaskWakeHistoryList(MessageQueryFilter filter);

    @RemoteAction(path = "/QueryTaskWakeList", method = RequestMethod.POST)
    ArrayList<TaskWakeDto> QueryTaskWakeList(MessageQueryFilter filter);

    @RemoteAction(path = "/QueryTaskWakeHistoryCount", method = RequestMethod.POST)
    int QueryTaskWakeHistoryCount(MessageQueryFilter filter);

    @RemoteAction(path = "/QueryTaskWakeCount", method = RequestMethod.POST)
    int QueryTaskWakeCount(MessageQueryFilter filter);

    @RemoteAction(path = "/SetToDoneOrReadById", method = RequestMethod.POST)
    MessageSetReadResponseDto SetToDoneOrReadById(UUID toDoGuid);
}
